<% if @task.present? %>
$('.modal-content').html("<%= escape_javascript(render :partial => 'reports/task') %>")
$('#myModal').foundation('reveal', 'open');
<% else %>
$('.alert-area').notify({message: { text: 'Access denied' }, type: 'tracker-alert', fadeOut: { enabled: true, delay: 10000 }}).show();
<% end %>